#include <iostream>
using namespace std;
#include <vector>

int main() {
    int n, target;
    cin >> n >> target;
    vector<int> nums(n);
    for (int i = 0; i < n; i++)
        cin >> nums[i];

    int ret = nums.size() + 1;
    if (nums[nums.size() - 1] < target)
    {
        cout << ret;
        return 0;
    }

    int left = 0, right = nums.size() - 1;
    while (left < right)
    {
        int mid = left + (right - left) / 2;

        if (nums[mid] < target) left = mid + 1;
        else right = mid;
    }

    cout << left + 1;
    return 0;
}